<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Nhập điểm thi</h3>
	</div>
<!--------------------------------------------------------Content------------------------------------------->    	
	<div class="content-box-content" >
        <form action="" method="POST" id="formnoidung" name="dulieu">
        <table>
            <tr>
                <td colspan="9">
                    <input type="submit" class="button" value="Lưu" name="Luu"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="diem/in_diem_ktmon.php?ma_ds={$dsthi}" target="_blank"><input type="button" class="button" value="In bảng điểm"/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <b>Môn học: <font color=green>{$kq_tt_ds['ten_mh']}</font></b>&nbsp;&nbsp;&nbsp;
                    <b>Ngành: <font color=green>{$kq_tt_ds['ten_nganh']}</b></font>&nbsp;&nbsp;&nbsp;
                    <b>Ngày thi: <font color=green>{$kq_tt_ds['ngaythi']}</b></font>&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td class="td-40 cangiua"><b>STT</b></td>
                <td class="td-90"><b>Mã sinh viên</b></td>
                <td class="td-70"><b>Họ tên</b></td>
                <td class="td-70"><b>Ngày sinh</b></td>
                <td class="td-70"><b>Tên lớp</b></td>
                <td class="td-70 cangiua"><b>Điểm CC</b></td>
                <td class="td-70 cangiua"><b>Điểm ĐK</b></td>
                <td class="td-70 cangiua"><b>Điểm Thi</b></td>
                <td></td>
            </tr>
            {$i=1}
            {foreach from=$dssv item=sv}
                <tr>
                    <td>{$i}
                        <input type="hidden" name="ma_diemthi{$i}" value="{$sv.ma_diemthi}"/>
                    </td>
                    <td class="td-100">{$sv.ma_sv}</td>
                    <td class="td-150">{$sv.hoten_sv}</td>
                    <td class="td-80">{$sv.ngaysinh_sv}</td>
                    <td class="td-120">{$sv.ten_lop}</td>
                    <td class="td-70 cangiua">{$arr_kqqt_cc[$sv.ma_dkm]}</td>
                    <td class="td-70 cangiua">{$arr_kqqt_dk[$sv.ma_dkm]}</td>
                    <td class="td-70 "><input type="text" class="small-input" name="diem{$i}" id="diem{$i}" value="{$sv.diemthi}" onblur="diemthi(this.value,{$i})"/>
                    <label id="diemcu{$i}"></label>
                    <input type="hidden" id="dieman{$i}"  value="{$sv.diemthi}"/>
                    </td>
                    <td><label id="loi{$i}"></label></td>
                    {$i=$i+1}
                </tr>
            {/foreach}
            <tr>
                <td><input type="hidden" value="{$i}" name="somax"/></td>
            </tr>
        </table>         
        
    </div> <!-- End .content-box-content -->
</div>